package com.bwhx.eruler.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Version;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.dao.VersionDao;
import com.bwhx.eruler.service.VersionService;
import com.bwhx.eruler.service.VersionService;

/**
 * @Description:
 */
@Service
public class VersionServiceImpl implements VersionService {
	@Autowired 
	VersionDao verDao;

	//带条件查询
	public List<Version> find(Version ver) {
		return verDao.find(ver);
	}

	
	public Version get(Serializable dId) {
		// TODO Auto-generated method stub
		return verDao.get(dId);
	}

	
	public void insert(Version ver) {
		verDao.insert(ver);
		
	}

	
	public void update(Version ver) {
		verDao.update(ver);
		
	}

	
	public void delete(Serializable id) {

		verDao.delete(id);
		
	}

	
	public void delete(Serializable[] ids) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public List<Version> findByName(String vername) {
		
		return verDao.findByName(vername);
	}


	@Override
	public void inputVersion(Version d) {
		verDao.inputVersion(d);		
	}


	@Override
	public List<Version> list(Page p) {
		return verDao.list(p);
	}


	@Override
	public Integer count(Version ver) {
		return verDao.count(ver);

	}


	@Override
	public List<Version> verListAll() {
		return verDao.verListAll();
	}

}
